<template>
  <div class="Container">
    <h1>当季品类</h1>
    <!-- 导航 -->
    <div class="nav">
      <ul>
        <li>
          <a href="" class="active">服装</a>
        </li>
        <li>
          <a href="" >鞋类</a>
        </li>
        <li>
          <a href="">帽子</a>
        </li>
        <li>
          <a href="">自行车</a>
        </li>
        <li>
          <a href="">跑步</a>
        </li>
      </ul>
    </div>
    <!-- 页面 -->
    <div class="page">
      <div class="top">
        <div class="word">
          <p class="p1">服装类</p>
          <p class="p2">尽享阳光<br />活力生活</p>
          <button>立即选购</button>
        </div>
        <div
          class="img"
          style="
            background-image: url(https://pixl.decathlon.com.cn/s860891/monthly-recommendation-desktop-2.jpg);
          "
        ></div>
      </div>
      <!-- 轮播图 -->
     <FloorSwiper :index="4"></FloorSwiper>
      <div class="box"><div class="pic"></div></div>
    </div>
    <!--  -->
      <h1 style="margin:8vh 0">搭配推荐</h1>
    <FloorChildern></FloorChildern>
   
  </div>
</template>

<script>
  import FloorChildern from './FloorChildern/index'  
  import FloorSwiper  from './FloorSwiper/index'
export default {
  name: "Floor",
  components:{
      FloorChildern,
      FloorSwiper
  },
};
</script>

<style lang="less" scoped>
li {
  float: left;
  list-style: none;
}
a {
  text-decoration: none;
}
.Container {
  width: 100%;
  h1 {
    text-align: center;
    font-size: 50px;
  }
  .nav {
    width: 800px;
    height: 100px;
    margin: 0 auto;
    text-align: center;
    li {
      margin: 40px 50px;
      a {
        color: rgb(136, 133, 133);
        font-size: 20px;
        .active {
          color: #000;
          font-weight: blod;
        }
      }
      a:hover {
        color: #000;
        font-weight: 1000;
      }
    }
    li:hover {
      list-style-type: square;
    }
    //   页面
  }
  .page {
    margin-top: -19vh;
    padding: 0 19vw;
    position: relative;
    .top {
      height: 33vh;
      padding-top: 22vh;
      .word {
        position: absolute;
        width: 19vw;
        height: 33vh;
        color: white;
        .p1 {
          margin-bottom: 0;
          font-size: 22px;
          font-weight: 1000;
        }
        .p2 {
          margin: 0;
          font-size: 60px;
          font-weight: 1000;
        }
        button {
          position: absolute;
          width: 150px;
          height: 50px;
          border: 0;
          border-radius: 1vh;
          background-color: #ffea28;
          font-weight: 1000;
          bottom: 3vh;
        }
        button:hover{
          background-color: rgb(248, 208, 32);
          cursor: pointer;
        }
      }
      .img {
        position: absolute;
        right: 19vw;
        width: 42.084vw;
        height: 33.025vh;
        border-radius: 1vw 1vw 6vw 1vw;
      }
    }
    .box {
      position: absolute;
      top: 19vh;
      left: 0;
      width: 100vw;
      height: 55vh;
      overflow: hidden;
      z-index: -1;
      .pic {
        width: 100vw;
        height: 60vh;
        background-size: cover;
        background-repeat: no-repeat;
        background-image: url(https://pixl.decathlon.com.cn/s860891/monthly-recommendation-desktop-2.jpg);
        filter: blur(5px);
        overflow: hidden;
      }
    }
  }
}
</style>
